libros=new Array(
       "Genesis ", "GEN",
       "Exodo ", "EXOD",
       "Levitico ", "LEV",
       "Numeros ", "NUM",
       "Deuteronomio ", "DEUT",
       "Josue ", "JOSH",
       "1 Samuel ", "1SAM",
       "2 Samuel ", "2SAM",
       "1 Reyes ", "1KINGS",
       "2 Reyes ", "2KINGS",
       "1 Cronicas ", "1CHRON",
       "2 Cronicas ", "2CHRON",
       "Nehemias ", "NEH",
       "Jueces ", "JUDG",
       "Ruth ", "RUTH",
       "Job ", "JOB",
       "Salmo ", "PS",
       "Proverbios ", "PROV",
       "Eclesiastes ", "ECC",
       "Isaias ", "ISA",
       "Jeremias ", "JER",
       "Lamentaciones ", "LAM",
       "Ezequiel ", "EZE",
       "Daniel ", "DAN",
       "Oseas ", "HOSEA",
       "Joel ", "JOE",
       "Miqueas ", "MICAH",
       "Abdias ", "OBAD",
       "Amos ", "AMOS",
       "Ester ", "ESTH",
       "Esdras ", "EZRA",
       "Cantares ", "SONG",
       "Jonas ", "JONAH",
       "Nahum ", "NAHUM",
       "Sofonias ", "ZEPH",
       "Habacuc ", "HAB",
       "Hageo ", "HAG",
       "Zacarias ", "ZAC",
       "Malaquias ", "MAL",
       "Mateo ", "MT",
       "Marcos ", "MARK",
       "Lucas ", "LUKE",
       "Juan ", "JN",
       "Hechos ", "ACTS",
       "Romanos ", "ROM",
       "1 Corintios", "1COR",
       "2 Corintios", "2COR",
       "Galatas ", "GAL",
       "Efesios ", "EFE",
       "Colosenses ", "COL",
       "Filipenses ", "FIL",
       "1 Tesalonicenses ", "1TES",
       "2 Tesalonicenses ", "2TES",
       "1 Timoteo ", "1TIM",
       "2 Timoteo ", "2TIM",
       "Tito ", "TIT",
       "Filemon ", "PHILEM",
       "Hebreos ", "HEB",
       "Santiago ", "JAS",
       "1 Pedro ", "1PET",
       "2 Pedro ", "2PET",
       "1 Juan ", "1JOHN",
       "2 Juan ", "2JOHN",
       "3 Juan ", "3JOHN",
       "Judas ", "JUDE",
       "Apocalipsis ", "REV")
    iLibros = new Array(libros.length / 2);
    function VersText(vers) {
      texto   = "";
      linkext = "";
      for (y=0; y<libros.length; y+=2) {
        if (libros[y]== vers.substr(0, libros[y].length)) {
          linkext = libros[y+1]+"+"+vers.substr(libros[y].length);
          break;
        }
      }
      if (y>=libros.length) alert("(listaversiculo.js) El libro no esta en la tabla de libros: " + vers);
      cap = "";
      var rango  = "";
      if (vers.indexOf(":")!=-1) {
        cap    = vers.substring(libros[y].length, vers.indexOf(":"));
        rango  = vers.substring(vers.indexOf(":")+1);
      }
      try {
        BuscoVers(vers, "0");
        if (texto=="") {
          while (rango.indexOf(",")!=-1) {
            var pasaje=rango.substr(0,rango.indexOf(","));
            Buscarlo(pasaje);
            rango=rango.substr(rango.indexOf(",")+1);
          }
          pasaje=rango;
          Buscarlo(pasaje);
        }
        if (texto=="") {
          texto="(listaversiculo.js) Cita no encontrada: "+vers;
          alert(texto);
        } else {
          texto=texto+"RVR1960";
        }
      } catch (e) {
      }
    }
    function SplitCita (sCita) {
      var Cita = sCita;
      citasbib = new Array();
      yy  = 0;
      while (Cita.indexOf(";") != -1) {
        citasbib[yy] = Cita.substring(0, Cita.indexOf(";"));
        yy++;
        Cita=Cita.substring(Cita.indexOf(";")+2);
      }
      citasbib[yy] = Cita;
    }
    listabibliaanual=new Array(
      "1","1","Genesis 1-3; Juan 1-2",
      "1","2","Genesis 4-5; Juan 3",
      "1","3","Genesis 6-7; Juan 4",
      "1","4","Genesis 8-9; Juan 5",
      "1","5","Genesis 10-11; Juan 6",
      "1","6","Genesis 12-13; Juan 7",
      "1","7","Genesis 14-15; Juan 8",
      "1","8","Genesis 16-18; Juan 9-10",
      "1","9","Genesis 19-20; Juan 11",
      "1","10","Genesis 21-22; Juan 12",
      "1","11","Genesis 23-24; Juan 13",
      "1","12","Genesis 25-26; Juan 14",
      "1","13","Genesis 27-28; Juan 15",
      "1","14","Genesis 29-30; Juan 16",
      "1","15","Genesis 31-34; Juan 17",
      "1","16","Genesis 35-36; Juan 18",
      "1","17","Genesis 37-38; Juan 19",
      "1","18","Genesis 39-40; Juan 20",
      "1","19","Genesis 41-42; Juan 21",
      "1","20","Genesis 43-45",
      "1","21","Genesis 46-48",
      "1","22","Genesis 49-50; Exodo 1-3",
      "1","23","Exodo 4-5; Romanos 1",
      "1","24","Exodo 6-7; Romanos 2",
      "1","25","Exodo 8-9; Romanos 3",
      "1","26","Exodo 10-11; Romanos 4",
      "1","27","Exodo 12-13; Romanos 5",
      "1","28","Exodo 14-15; Romanos 6",
      "1","29","Exodo 16-20",
      "1","30","Exodo 21-22; Romanos 7",
      "1","31","Exodo 23-24; Romanos 8",
      "2","1","Exodo 25-26; Romanos 9",
      "2","2","Exodo 27-28; Romanos 10",
      "2","3","Exodo 29-30; Romanos 11",
      "2","4","Exodo 31-32; Romanos 12",
      "2","5","Exodo 33-36; Romanos 13",
      "2","6","Exodo 37-38; Romanos 14",
      "2","7","Exodo 39-40; Romanos 15",
      "2","8","Levitico 1-2; Romanos 16",
      "2","9","Levitico 3-4; Hebreos 1",
      "2","10","Levitico 5-6; Hebreos 2",
      "2","11","Levitico 7-8; Hebreos 3",
      "2","12","Levitico 9-12; Hebreos 4",
      "2","13","Levitico 13-14; Hebreos 5",
      "2","14","Levitico 15-16; Hebreos 6",
      "2","15","Levitico 17-18; Hebreos 7",
      "2","16","Levitico 19-20; Hebreos 8",
      "2","17","Levitico 21-23; Hebreos 9",
      "2","18","Levitico 24-25; Hebreos 10-11",
      "2","19","Levitico 26-27; Hebreos 12-13",
      "2","20","Numeros 1-2; Hechos 1",
      "2","21","Numeros 3-4; Hechos 2",
      "2","22","Numeros 5-6; Hechos 3",
      "2","23","Numeros 7-8; Hechos 4",
      "2","24","Numeros 9-10; Hechos 5",
      "2","25","Numeros 11-12; Hechos 6-7",
      "2","26","Numeros 13-14; Hechos 8-9",
      "2","27","Numeros 15-16; Hechos 10",
      "2","28","Numeros 17-18; Hechos 11",
      "3","1","Numeros 19-20; Hechos 12",
      "3","2","Numeros 21-22; Hechos 13",
      "3","3","Numeros 23-24; Hechos 14",
      "3","4","Numeros 25-26; Hechos 15",
      "3","5","Hechos 16-20",
      "3","6","Numeros 27-28; Hechos 21",
      "3","7","Numeros 29-30; Hechos 22",
      "3","8","Numeros 31-32; Hechos 23",
      "3","9","Numeros 33; Hechos 24-25",
      "3","10","Numeros 34-35; Hechos 26",
      "3","11","Numeros 36; Hechos 27-28",
      "3","12","Deuteronomio 1-3; Mateo 1-2",
      "3","13","Deuteronomio 4-6; Mateo 3",
      "3","14","Deuteronomio 7-8; Mateo 4",
      "3","15","Deuteronomio 9-10; Mateo 5",
      "3","16","Deuteronomio 11-12; Mateo 6",
      "3","17","Deuteronomio 13-14; Mateo 7",
      "3","18","Deuteronomio 15-16; Mateo 8",
      "3","19","Deuteronomio 17; Mateo 9-12",
      "3","20","Deuteronomio 18; Mateo 13-14",
      "3","21","Deuteronomio 19; Mateo 15-16",
      "3","22","Deuteronomio 20-21; Mateo 17",
      "3","23","Deuteronomio 22-23; Mateo 18",
      "3","24","Deuteronomio 24; Mateo 19-20",
      "3","25","Deuteronomio 25-26; Mateo 21",
      "3","26","Deuteronomio 27; Mateo 22-25",
      "3","27","Deuteronomio 28-29; Mateo 26",
      "3","28","Deuteronomio 30-31; Mateo 27",
      "3","29","Deuteronomio 32-34; Mateo 28",
      "3","30","Josue 1-2; Proverbios 1",
      "3","31","Josue 3-4; Proverbios 2",
      "4","1","Josue 5-6; Proverbios 3",
      "4","2","Josue 7-9; Proverbios 4-5",
      "4","3","Josue 10-11; Proverbios 6",
      "4","4","Josue 12-13; Proverbios 7",
      "4","5","Josue 14-15; Proverbios 8",
      "4","6","Josue 16-17; Proverbios 9",
      "4","7","Josue 18-19; Proverbios 10",
      "4","8","Josue 20-21; Proverbios 11",
      "4","9","Josue 22-24; Proverbios 12-13",
      "4","10","Jueces 1-2; Proverbios 14",
      "4","11","Jueces 3-4; Proverbios 15",
      "4","12","Jueces 5-6; Proverbios 16",
      "4","13","Jueces 7-8; Proverbios 17",
      "4","14","Jueces 9-10; Proverbios 18",
      "4","15","Jueces 11-12; Proverbios 19",
      "4","16","Jueces 13-15; Proverbios 20-21",
      "4","17","Jueces 16-17; Proverbios 22",
      "4","18","Jueces 18-19; Proverbios 23",
      "4","19","Jueces 20-21; Proverbios 24",
      "4","20","Ruth 1-2; Proverbios 25",
      "4","21","Ruth 3-4; Proverbios 26",
      "4","22","1 Samuel 1-2; Proverbios 27",
      "4","23","1 Samuel 3; Proverbios 28-29",
      "4","24","1 Samuel 4-5; Proverbios 30",
      "4","25","1 Samuel 6-7; Proverbios 31",
      "4","26","1 Samuel 8-9; Salmo 1",
      "4","27","1 Samuel 10-11; Salmo 2",
      "4","28","1 Samuel 12-13; Salmo 3-4",
      "4","29","1 Samuel 14-15; Salmo 5-6",
      "4","30","1 Samuel 16-17; Salmo 7-9",
      "5","1","1 Samuel 18-19; Salmo 10",
      "5","2","1 Samuel 20-21; Salmo 11",
      "5","3","1 Samuel 22-23; Salmo 12",
      "5","4","1 Samuel 24-25; Salmo 13",
      "5","5","1 Samuel 26-27; Salmo 14",
      "5","6","1 Samuel 28-31",
      "5","7","2 Samuel 1-2; Salmo 15-17",
      "5","8","2 Samuel 3-4; Salmo 18",
      "5","9","2 Samuel 5-6; Salmo 19",
      "5","10","2 Samuel 7-8; Salmo 20",
      "5","11","2 Samuel 9-10; Salmo 21",
      "5","12","2 Samuel 11-12; Salmo 22",
      "5","13","2 Samuel 13-14; Salmo 23",
      "5","14","2 Samuel 15-16; Salmo 24-26",
      "5","15","2 Samuel 17-18; Salmo 27",
      "5","16","2 Samuel 19-20; Salmo 28",
      "5","17","2 Samuel 21-22; Salmo 29",
      "5","18","2 Samuel 23-24; Salmo 30",
      "5","19","1 Reyes 1-2; Salmo 31",
      "5","20","1 Reyes 3-4; Salmo 32-33",
      "5","21","1 Reyes 5-6; Salmo 34-35",
      "5","22","1 Reyes 7-8; Salmo 36",
      "5","23","1 Reyes 9-10; Salmo 37",
      "5","24","1 Reyes 11-12; Salmo 38",
      "5","25","1 Reyes 13-14; Salmo 39",
      "5","26","1 Reyes 15-16; Salmo 40",
      "5","27","1 Reyes 17-18; Salmo 41",
      "5","28","1 Reyes 19-22",
      "5","29","2 Reyes 1-2; Salmo 42-43",
      "5","30","2 Reyes 3-4; Salmo 44",
      "5","31","2 Reyes 5-6; Salmo 45",
      "6","1","2 Reyes 7-8; Salmo 46",
      "6","2","2 Reyes 9-10; Abdias ",
      "6","3","2 Reyes 11-12; Joel 1-2",
      "6","4","2 Reyes 13-15; Joel 3",
      "6","5","Miqueas 1-3",
      "6","6","Miqueas 4-6",
      "6","7","2 Reyes 16-17",
      "6","8","2 Reyes 18-19",
      "6","9","2 Reyes 20-21; Isaias 1-2",
      "6","10","2 Reyes 22; Isaias 3-4",
      "6","11","2 Reyes 23; Isaias 5-6",
      "6","12","2 Reyes 24; Isaias 7-8",
      "6","13","2 Reyes 25; Isaias 9-10",
      "6","14","Isaias 11-13",
      "6","15","Isaias 14-16",
      "6","16","Isaias 17-19",
      "6","17","Isaias 20-22",
      "6","18","Isaias 23-27",
      "6","19","Isaias 28-31",
      "6","20","Isaias 32-35",
      "6","21","Isaias 36-37; Salmo 47",
      "6","22","1 Cronicas 1; Oseas 1-2",
      "6","23","1 Cronicas 2; Oseas 3-4",
      "6","24","1 Cronicas 3; Oseas 5-6",
      "6","25","1 Cronicas 4; Oseas 7-10",
      "6","26","1 Cronicas 5; Oseas 11-12",
      "6","27","1 Cronicas 6; Oseas 13-14",
      "6","28","1 Cronicas 7; Amos 1-2",
      "6","29","1 Cronicas 8; Amos 3-4",
      "6","30","1 Cronicas 9; Amos 5-6",
      "7","1","1 Cronicas 10; Amos 7-9",
      "7","2","1 Cronicas 11; Jonas 1-2",
      "7","3","1 Cronicas 12; Jonas 3-4",
      "7","4","1 Cronicas 13; Isaias 38-39",
      "7","5","1 Cronicas 14; Isaias 40-41",
      "7","6","1 Cronicas 15; Isaias 42-43",
      "7","7","1 Cronicas 16; Isaias 44-45",
      "7","8","1 Cronicas 17; Isaias 46-48",
      "7","9","1 Cronicas 18; Isaias 49-51",
      "7","10","1 Cronicas 19; Isaias 52-53",
      "7","11","1 Cronicas 20; Isaias 54-55",
      "7","12","1 Cronicas 21; Isaias 56-57",
      "7","13","1 Cronicas 22; Isaias 58-59",
      "7","14","1 Cronicas 23; Isaias 60-61",
      "7","15","1 Cronicas 24; Isaias 62-63",
      "7","16","1 Cronicas 25; Isaias 64-66",
      "7","17","1 Cronicas 26-27; Nahum 1-3",
      "7","18","1 Cronicas 28; Habacuc 1-3",
      "7","19","1 Cronicas 29; Zacarias 1-2",
      "7","20","2 Cronicas 1; Zacarias 3",
      "7","21","2 Cronicas 2; Zacarias 4",
      "7","22","2 Cronicas 3; Zacarias 5-6",
      "7","23","2 Cronicas 4; Zacarias 7-10",
      "7","24","2 Cronicas 5; Zacarias 11-12",
      "7","25","2 Cronicas 6; Zacarias 13-14",
      "7","26","2 Cronicas 7; Malaquias 1-2",
      "7","27","2 Cronicas 8; Malaquias 3-4",
      "7","28","2 Cronicas 9; Hageo 1-2",
      "7","29","2 Cronicas 10; Jeremias 1-3",
      "7","30","2 Cronicas 11; Jeremias 4-6",
      "7","31","2 Cronicas 12; Jeremias 7-8",
      "8","1","2 Cronicas 13; Jeremias 9-10",
      "8","2","2 Cronicas 14; Jeremias 11-12",
      "8","3","2 Cronicas 15; Jeremias 13-14",
      "8","4","2 Cronicas 16; Jeremias 15-16",
      "8","5","2 Cronicas 17; Jeremias 17-19",
      "8","6","2 Cronicas 18; Jeremias 20-22",
      "8","7","2 Cronicas 19; Jeremias 23-24",
      "8","8","2 Cronicas 20; Jeremias 25-26",
      "8","9","2 Cronicas 21; Jeremias 27-28",
      "8","10","2 Cronicas 22; Jeremias 29-30",
      "8","11","2 Cronicas 23; Jeremias 31-32",
      "8","12","2 Cronicas 24; Jeremias 33-34",
      "8","13","2 Cronicas 25; Jeremias 35-37",
      "8","14","2 Cronicas 26; Jeremias 38-39",
      "8","15","2 Cronicas 27; Jeremias 40-42",
      "8","16","2 Cronicas 28; Jeremias 43-44",
      "8","17","2 Cronicas 29; Jeremias 45-46",
      "8","18","2 Cronicas 30; Jeremias 47-48",
      "8","19","2 Cronicas 31; Jeremias 49-50",
      "8","20","2 Cronicas 32; Jeremias 51-52",
      "8","21","2 Cronicas 33; Lamentaciones 1-3",
      "8","22","2 Cronicas 34; Ezequiel 1-2",
      "8","23","2 Cronicas 35; Ezequiel 3-4",
      "8","24","2 Cronicas 36; Ezequiel 5-6",
      "8","25","Ezequiel 7-9; Lamentaciones 4-5",
      "8","26","Ezequiel 10-13",
      "8","27","Ezequiel 14-16",
      "8","28","Ezequiel 17-19",
      "8","29","Ezequiel 20-22",
      "8","30","Ezequiel 23-25",
      "8","31","Ezequiel 26-29",
      "9","1","Ezequiel 30-32",
      "9","2","Ezequiel 33-35",
      "9","3","Ezequiel 36-40",
      "9","4","Ezequiel 41-43",
      "9","5","Ezequiel 44-46",
      "9","6","Ezequiel 47-48; Daniel 1",
      "9","7","Daniel 2-4",
      "9","8","Daniel 5-7",
      "9","9","Daniel 8-10",
      "9","10","Daniel 11-12; Ester 1-3",
      "9","11","Ester 4-6",
      "9","12","Ester 7-10",
      "9","13","Esdras 1-3",
      "9","14","Esdras 4-6",
      "9","15","Esdras 7-9",
      "9","16","Esdras 10; Nehemias 1-2",
      "9","17","Nehemias 3-7",
      "9","18","Nehemias 8-10",
      "9","19","Nehemias 11-13",
      "9","20","Cantares 1-3",
      "9","21","Cantares 4-6",
      "9","22","Cantares 7-8",
      "9","23","Eclesiastes 1-3",
      "9","24","Eclesiastes 4-8",
      "9","25","Eclesiastes 9-12",
      "9","26","Marcos 1; Job 1-2",
      "9","27","Marcos 2; Job 3-4",
      "9","28","Marcos 3; Job 5-6",
      "9","29","Marcos 4; Job 7-9",
      "9","30","Marcos 5-6; Job 10-13",
      "10","1","Marcos 7; Job 14-16",
      "10","2","Marcos 8; Job 17-18",
      "10","3","Marcos 9; Job 19-20",
      "10","4","Marcos 10; Job 21-22",
      "10","5","Marcos 11; Job 23-24",
      "10","6","Marcos 12; Job 25-26",
      "10","7","Marcos 13; Job 27-28",
      "10","8","Marcos 14; Job 29-30",
      "10","9","Marcos 15; Job 31-32",
      "10","10","Marcos 16; Job 33-34",
      "10","11","Job 35-37",
      "10","12","Job 38-40",
      "10","13","Job 41-42; 1 Corintios 1-3",
      "10","14","1 Corintios 4-8",
      "10","15","1 Corintios 9-11",
      "10","16","1 Corintios 12-14",
      "10","17","1 Corintios 15-16; Salmo 48",
      "10","18","2 Corintios 1; Salmo 49-50",
      "10","19","2 Corintios 2; Salmo 51-52",
      "10","20","2 Corintios 3; Salmo 53-54",
      "10","21","2 Corintios 4; Salmo 55-58",
      "10","22","2 Corintios 5; Salmo 59-60",
      "10","23","2 Corintios 6; Salmo 61-62",
      "10","24","2 Corintios 7; Salmo 63-64",
      "10","25","2 Corintios 8; Salmo 65-66",
      "10","26","2 Corintios 9; Salmo 67-68",
      "10","27","2 Corintios 10; Salmo 69-70",
      "10","28","2 Corintios 11; Salmo 71-72",
      "10","29","2 Corintios 12; Salmo 73-74",
      "10","30","2 Corintios 13; Salmo 75-76",
      "10","31","1 Pedro 1; Salmo 77-78",
      "11","1","1 Pedro 2; Salmo 79-80",
      "11","2","1 Pedro 3; Salmo 81-82",
      "11","3","1 Pedro 4; Salmo 83-84",
      "11","4","1 Pedro 5; 2 Pedro 1-3; Salmo 85",
      "11","5","Galatas 1; Salmo 86-87",
      "11","6","Galatas 2; Salmo 88-89",
      "11","7","Galatas 3; Salmo 90-91",
      "11","8","Galatas 4; Salmo 92-93",
      "11","9","Galatas 5; Salmo 94-95",
      "11","10","Galatas 6; Salmo 96-97",
      "11","11","Efesios 1-2; Salmo 98-100",
      "11","12","Efesios 3; Salmo 101-102",
      "11","13","Efesios 4; Salmo 103-104",
      "11","14","Efesios 5; Salmo 105-106",
      "11","15","Efesios 6; Salmo 107-108",
      "11","16","Filipenses 1; Salmo 109-110",
      "11","17","Filipenses 2; Salmo 111-112",
      "11","18","Filipenses 3-4; Colosenses 1-2; Salmo 113",
      "11","19","Colosenses 3; Salmo 114-115",
      "11","20","Colosenses 4; Salmo 116-117",
      "11","21","1 Tesalonicenses 1-2; Salmo 118",
      "11","22","1 Tesalonicenses 3; Salmo 119:1-48",
      "11","23","1 Tesalonicenses 4; Salmo 119:49-112",
      "11","24","1 Tesalonicenses 5; Salmo 119:113-176",
      "11","25","2 Tesalonicenses 1-3; Salmo 120",
      "11","26","Santiago 1; Salmo 121-122",
      "11","27","Santiago 2; Salmo 123-124",
      "11","28","Santiago 3; Salmo 125-126",
      "11","29","Santiago 4; Salmo 127-128",
      "11","30","Santiago 5; Salmo 129-130",
      "12","1","Filemon ; Salmo 131-132",
      "12","2","1 Timoteo 1-3; Salmo 133-134",
      "12","3","1 Timoteo 4; Salmo 135-136",
      "12","4","1 Timoteo 5; Salmo 137-138",
      "12","5","1 Timoteo 6; Salmo 139-140",
      "12","6","2 Timoteo 1; Salmo 141-142",
      "12","7","2 Timoteo 2; Salmo 143-144",
      "12","8","2 Timoteo 3-4; Salmo 145",
      "12","9","Tito 1-3; Salmo 146-147",
      "12","10","1 Juan 1-2; Salmo 148",
      "12","11","1 Juan 3-4; Salmo 149",
      "12","12","1 Juan 5; 2 Juan ; Salmo 150",
      "12","13","3 Juan ; Judas ; Lucas 1",
      "12","14","Lucas 2-3; Apocalipsis 1",
      "12","15","Lucas 4; Apocalipsis 2-3",
      "12","16","Lucas 5-7; Apocalipsis 4-5",
      "12","17","Lucas 8-9; Apocalipsis 6",
      "12","18","Lucas 10-11; Apocalipsis 7",
      "12","19","Lucas 12; Apocalipsis 8-9",
      "12","20","Lucas 13-14; Apocalipsis 10",
      "12","21","Lucas 15-16; Apocalipsis 11",
      "12","22","Lucas 17-18; Apocalipsis 12",
      "12","23","Lucas 19; Apocalipsis 13-14",
      "12","24","Lucas 20; Apocalipsis 15",
      "12","25","Lucas 21; Apocalipsis 16",
      "12","26","Lucas 22; Apocalipsis 17",
      "12","27","Lucas 23; Apocalipsis 18",
      "12","28","Lucas 24; Apocalipsis 19",
      "12","29","Apocalipsis 20",
      "12","30","Apocalipsis 21",
      "12","31","Apocalipsis 22")
    var todayDate = new Date();
    var dia  = todayDate.getDate();
    var mes  = todayDate.getMonth();
    var mesi = mes+=1;
    var diaS = todayDate.getDay();
    var anio = 2013;
    for (var ii=0;ii<listabibliaanual.length;ii+=3) {
      if (listabibliaanual[ii]==mesi && listabibliaanual[ii+1]==dia) {
        break;
      }
    }
    var xDia  = "Dia";
    var xMes  = "Mes";
    var xAnio = "Anio";
    function Calendario() {
          monthnames = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto", "Septiembre","Octubre","Noviembre","Diciembre");
          monthdays  = new Array( 31    , 28      , 31    , 30    , 31   , 30    , 31    , 31     ,  30         , 31      , 30        , 31);
          wdaynames  = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado");
    }
    function WertHolen(Bezeichner) {
      var Wert = "";
      if (document.cookie) {
        var Wertstart = document.cookie.indexOf(Bezeichner+"=");
        if (Wertstart!=-1) {
          Wertstart++;
          Wertstart+=Bezeichner.length;
          var Wertende = document.cookie.indexOf(";", Wertstart);
          if (Wertende == -1)
            Wertende = document.cookie.length;
          Wert = document.cookie.substring(Wertstart,Wertende);
        }
      }
      return Wert;
    }

    function WertSetzen(Bezeichner, Wert) {
      Verfall   = 1000*60*60*24*365;
      var jetzt = new Date();
      var Auszeit = new Date(jetzt.getTime() + Verfall);
      document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
    }

    Calendario();
    var iDia  = WertHolen(xDia);
    if (iDia == "") iDia = 1;
    var iMes  = WertHolen(xMes);
    if (iMes == "") iMes = monthnames[0];
    var iAnio = WertHolen(xAnio);
    if (iAnio == "") iAnio=anio;
  
    for(i=0;i<monthnames.length;i++) {
      if (monthnames[i]==iMes) {
        iMesI=i;
      }
    }
    Hoy   = new Date();
    Fecha = new Date(iAnio, iMesI, iDia);
    if (Hoy.getTime()<Fecha.getTime()) {
      var faltan = parseInt((Fecha.getTime() - Hoy.getTime()) / (24*60*60*1000));
    } else if (Hoy.getTime()>(Fecha.getTime()+365*24*60*60*1000)) {
    } else {
      for (var ii=0;ii<listabibliaanual.length;ii+=3) {
        if (Fecha.getYear()==Hoy.getYear() && Fecha.getMonth()==Hoy.getMonth() && Fecha.getDate()==Hoy.getDate()) {
          break;
        }
        Fecha.setTime(Fecha.getTime() + 24*60*60*1000);
      }
      Fecha = new Date(iAnio, iMesI, iDia);
      SplitCita(listabibliaanual[ii+2]);
      document.writeln("<h3>Lectura para hoy:");
      for (icita=0;icita<citasbib.length;icita++) {
        VersText(citasbib[icita]);
        document.writeln("&nbsp; &nbsp;<a href='http://www.bibliavida.com/buscar/?q=" + linkext + "&t=rvr' target='_blank'>" +
                       citasbib[icita] +  "</a>");
      }
      document.writeln("</h3>");
    }
    document.writeln("<br/><table border='1' bordercolor='#2F2F2F'><tr><th>Mes</th>");
    for (var ii=1;ii<32;ii+=7) {
      for (var iii=0;iii<7;iii++) {
        document.writeln("<th width='14'><center>"+wdaynames[iii].substring(0,1)+"</center></th>");
      }
    }
    document.writeln("</tr>");
    var mesac = "!";
    for (var ii=0;ii<listabibliaanual.length;ii+=3) {
      var xxDiaS = Fecha.getDay();
      if (mesac!=Fecha.getMonth()) {
        document.writeln("<tr><td><a href=\"#"+monthnames[Fecha.getMonth()]+Fecha.getYear()+"\">"+monthnames[Fecha.getMonth()]+"</a></td>");
        mesac=Fecha.getMonth();
        for (var iii=0;iii<Fecha.getDay();iii++) {
          document.writeln("<td>&nbsp;</td>");
        }
      }
      if (Fecha.getYear()==Hoy.getYear() && Fecha.getMonth()==Hoy.getMonth() && Fecha.getDate()==Hoy.getDate()) {
        document.writeln("<td class='diaActual'>");
      } else if (xxDiaS==0 || xxDiaS==6) {
        document.writeln("<td bgcolor='#6E6E6E'>");
      } else {
        document.writeln("<td>");
      }
      SplitCita(listabibliaanual[ii+2]);
      var xLink = "<a href='http://www.bibliavida.com/buscar/?q=";      for (icita=0;icita<citasbib.length;icita++) {        VersText(citasbib[icita]);        xLink=xLink+linkext;        if (icita<(citasbib.length-1)) {          xLink=xLink+";";        }      }      xLink=xLink+"&t=rvr' target='_blank' ";
      document.writeln(xLink +
               ' ><center>'+Fecha.getDate()+'</center></a>');
      Fecha.setTime(Fecha.getTime() + 24*60*60*1000);
    }
    document.writeln("</tr></table><hr>");

    mesac="!";
    Fecha = new Date(iAnio, iMesI, iDia);
    for (var ii=0;ii<listabibliaanual.length;ii+=3) {
      var xxDiaS = Fecha.getDay();
      if (mesac!=Fecha.getMonth()) {
        if (mesac!="!") {
          if (Fecha.getDay()!=0) {
            document.writeln("</tr>");
          }
          document.writeln("</table>");
        }
        document.writeln("<center>&nbsp;</center>");
        document.writeln("<table border=\"1\" cellspacing=\"2\" cellpadding=\"2\"><tr><td colspan=\"7\"><center><h3><a name=\""+monthnames[Fecha.getMonth()]+Fecha.getYear()+"\">"+monthnames[Fecha.getMonth()]+"</a></h3></center></td></tr><tr>");
        mesac=Fecha.getMonth();
        for (iii=0;iii<wdaynames.length;iii++) {
          document.writeln("<th><center>"+wdaynames[iii]+"</center></th>");
        }
        document.writeln("</tr>");
        if (Fecha.getDay()!=0) {
          document.writeln("<tr>");
          for (iii=6-Fecha.getDay()+1;iii<wdaynames.length;iii++) {
            document.writeln("<td>&nbsp;</td>");
          }
        }
      }
      SplitCita(listabibliaanual[ii+2]);
      var xLink = "<a href='http://www.bibliavida.com/buscar/?q=";      for (icita=0;icita<citasbib.length;icita++) {        VersText(citasbib[icita]);        xLink=xLink+linkext;        if (icita<(citasbib.length-1)) {          xLink=xLink+";";        }      }      xLink=xLink+"&t=rvr' target='_blank' ";
      if (Fecha.getDay()==0) {
        document.writeln("<tr>");
      }
      if (Fecha.getYear()==Hoy.getYear() && Fecha.getMonth()==Hoy.getMonth() && Fecha.getDate()==Hoy.getDate()) {
        document.writeln("<td bgcolor='#ffee33' ");
      } else if (xxDiaS==0 || xxDiaS==6) {
        document.writeln("<td bgcolor='#6E6E6E' ");
      } else {
        document.writeln("<td ");
      }
      document.writeln("><div align=\"right\">"+Fecha.getDate() + "</div><br><center>" + xLink +
               ' >'+listabibliaanual[ii+2]+'</center></a></td>');
      if (Fecha.getDay()==6) {
        document.writeln("</tr>");
      }
      Fecha.setTime(Fecha.getTime() + 24*60*60*1000);
    }
    document.writeln("</table");
